package com.sun.demo2.moudel

import com.baomidou.mybatisplus.annotation.IdType
import com.baomidou.mybatisplus.annotation.TableId
import com.baomidou.mybatisplus.annotation.TableName
import lombok.Data


@Data
@TableName(value = "movies")
data class Movie(
    @TableId(type = IdType.AUTO)
    var id: Long,
    var name: String,
    var image: String
)

//    override fun toString(): String {
//        return "Movie(name=$name, imageUrl=$image)"
//    }

